package com.allen.workflow.listener.execution;

import com.allen.workflow.delegate.BusinessExecution;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @program: spring-boot-demo
 * @className MyExecutionListener
 * @description:
 * @author: zp
 * @create: 2024-08-16 14:59
 * @Version 1.0
 **/
@Slf4j
@Component
public class MyExecutionListener extends BusinessExecutionListener{

    @Override
    protected void onStart(BusinessExecution delegateExecution) {
        log.info("MyExecutionListener onStart");
    }

    @Override
    protected void onEnd(BusinessExecution delegateExecution) {
        log.info("MyExecutionListener onEnd");
    }

    @Override
    protected void onTake(BusinessExecution delegateExecution) {

    }
}
